public class LogicalOperators {
    public static void main(String[] args) {
        int x = 1, y = 2;
        System.out.println((x + y > 0) & (x - y < 0));
        System.out.println((x + y > 0) | (x - y < 0));
        System.out.println((x + y > 0) ^ (x - y < 0)); // 异 t
        System.out.println(!(x + y > 0));
        System.out.println(!(x - y < 0));
        System.out.println((x + y > 0) && (x - y < 0));
        System.out.println((x + y > 0) || (x - y < 0));

        System.out.println((x + y) > 0 | y++ > 1); // t
        System.out.println(y); // 3
        System.out.println((x + y) > 0 || y++ > 1); // t
        System.out.println(y); // 3

        // 10 = 1010
        // 5 = 101

    }
}

// t,t,f,f,f,t,t
